<?php 
$lang = $_POST['lang'];
if ($lang != null && sizeof($lang) > 0) {
    $_SESSION['lang'] = $lang;
}
if ( !isset($_SESSION['lang'])) {
	$_SESSION['lang'] = $DEFAULT_LANG;
} 

?>
<table cellpadding="0" cellspacing="0" style="width: 100%;">
    <tr>
        <td class="top-banner">
		    <img src="<?php echo $TOP_BANNER;?>" alt="BERA" />
        </td>
        <td class="flags">
			<form action="" method="post" id="LANGUAGE_FORM">
			<div>
				<input type="hidden" value="" id="LANGUAGE" name="lang"/>
				<a href="javascript: setLanguage('PL')"><img src="<?php echo $SKIN.'/pl.gif';?>" alt="PL"/></a>
				<a href="javascript: setLanguage('EN')"><img src="<?php echo $SKIN.'/uk.gif';?>" alt="EN"/></a>
			    <a href="javascript: setLanguage('DE')"><img src="<?php echo $SKIN.'/de.gif';?>" alt="DE"/></a>
			    <a href="javascript: setLanguage('FR')"><img src="<?php echo $SKIN.'/fr.gif';?>" alt="FR"/></a>	
			</div>
			</form>        
        </td>
    </tr>
</table>
